package day114;

import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;

/**
@Auther: MFM
@Date: 2021/11/4 - 11 - 04 - 18:57 
@version: 1.0
*/

public class Test {
//    public static void main(String[] args) {
////        Account account = new Account();
////        new dispose(account).start();
////        new draw(account,"甲").start();
////        new draw(account,"乙").start();
////        new draw(account,"丙").start();
////        Cook cook = new Cook();
////
////        new disposeFood(cook,"红烧肉").start();
////        new disposeFood(cook,"西兰花").start();
////        new disposeFood(cook,"糖醋里脊").start();
////        new drawFood(cook,"胖子").start();
////        new drawFood(cook,"美女").start();
////        new drawFood(cook,"小兽").start();
//        int i = 1;
//        int j = ++i;
//        System.out.println(i);
//    }


        public static void test(int[] arr){
            for(int i=0;i<arr.length;i++){
                try{
                    if(i%2==1){
                        throw new NullPointerException();
                    }else{
                        System.out.print(i);
                    }
                }finally{
                    System.out.print("e");}
            }
        }
        public static void main(String[] args){
            try{
                test(new int[]{2,2,2,1,0});
            }catch(Exception e){
                System.out.print("E");
            }
        }


}
